import { css } from '@emotion/css';

export const header = css`
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
`;

export const headerContainer = css`
  display: flex;
  align-items: center;
  height: 64px;
`;

export const headerContent = css`
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
`;

export const icon = css`
  margin-right: 12px;
  font-size: 24px;
`;

export const tableContainer = css`
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  height: 300px;
  overflow-y: auto;
`;

export const tableItem = (selected: boolean) => css`
  padding: 12px 16px;
  border-bottom: 1px solid #d9d9d9;
  cursor: pointer;
  background-color: ${selected ? '#e6f7ff' : 'white'};
  border-right: ${selected ? '3px solid #1890ff' : 'none'};
`;

export const tableItemDescription = css`
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 4px;
`;

export const tableItemName = css`
  font-weight: 500;
`;

export const footer = css`
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #fafafa;
  border-top: 1px solid #d9d9d9;
  margin-top: 16px;
  margin-left: -24px;
  margin-right: -24px;
  margin-bottom: -24px;
`;

export const selectedCount = css`
  /* 样式已在内联样式中定义 */
`;

export const progressContainer = css`
  margin-bottom: 16px;
`;

export const progressLabel = css`
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 4px;
`;

export const progressValue = css`
  font-size: 18px;
  font-weight: 600;
`;

export const formItem = css`
  margin-bottom: 16px;
`;

export const formLabel = css`
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
`;

export const connectionStatus = css`
  display: flex;
  align-items: center;
`;

export const connected = css`
  color: #52c41a;
  margin-left: 8px;
`;

export const disconnected = css`
  color: #ff4d4f;
  margin-left: 8px;
`;